package spring.controller;

import spring.dao.UserDao;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author:CoolTiger
 * @description: TODO
 * @date:2024/04/24/23:29:45
 **/
public class AppUserFactoryBean {
    public static void main(String[] args) {
        //FactoryBean实例化
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
        UserDao userDao = (UserDao) ctx.getBean("userDao");
        userDao.save();
    }
}
